import axios from 'axios'
axios.defaults.baseURL = "http://39.103.151.139:3000"
axios.interceptors.response.use(
    response => {
        return response.data
    },
    error => {
        return Promise.reject(error)
    }
)
class Http {
    static request({
        url,
        method = "get"
    }) {
        return axios({
            url,
            method
        })
    }

}
export { Http }
/* HomeHttp 首页 */
/* DjHttp  主播 */